package cc.lpz.backend.mapper;

import cc.lpz.backend.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderMapper extends BaseMapper<Order> {
    @Select("select * from `order` where user_id=#{userId}")
    List<Order> selectByUserId(@Param("userId") int userId);
}
